package com.wf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.wf.web.base.domain.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 标的表
 * @TableName loan_targets
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value ="loan_targets")
public class LoanTargets extends BaseDomain implements Serializable {

    private static final long serialVersionUID = -7287632975734154608L;
    /**
     * 标的ID，主键
     */
    @TableId(type = IdType.AUTO)
    private Integer targetId;

    /**
     * 借款人ID，外键
     */
    private Integer borrowerId;


    /**
     * 借款金额
     */
    private Double amount;
    /**
     * 已投金额
     */
    private Double investedAmount;

    /**
     * 借款利率
     */
    private Double interestRate;

    /**
     * 借款期限，以天为单位
     */
    private Integer loanTerm;

    /**
     * 借款目的
     */
    private String purpose;

    /**
     * 标的状态：待审、通过、拒绝、已筹满
     */
    private Object status;
    /**
     * 筹款结束时间
     */
    LocalDateTime finishInvestTime;
    /**
     * 备注
     */
    private String remark;


}